/*
 * 文件名:WarehouseCustomer.java
 * 创建时间:2010-10-01
 * 版本:2.0
 * 版权所有:杨涛 walle1027@gmail.com
 */
package com.yangtao.wms.domain;

import com.yangtao.framework.hibernate.BaseEntity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author 代码生成器 v-2.0
 * @version 2.0
 */
@Entity
@Table(name = "WMS_MST_WAREHOUSE_CUSTOMER")
public class WarehouseCustomer extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;


	/**
	 * 仓库
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "warehouse_id")
	private Warehouse warehouse;

	/**
	 * 仓库
	 */
	@Column(name = "warehouse_id", updatable = false, insertable = false)
	private String warehouseId;
	/**
	 * 客户基本信息表
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "customer_id")
	private Customer customer;

	/**
	 * 客户基本信息表
	 */
	@Column(name = "customer_id", updatable = false, insertable = false)
	private String customerId;



	/**
	 * 获取 仓库
	 *
	 * @return warehouse
	 */
	public Warehouse getWarehouse() {
		return warehouse;
	}

	/**
	 * 设置 仓库
	 *
	 * @param warehouse 仓库
	 */
	public void setWarehouse(Warehouse warehouse) {
		this.warehouse = warehouse;
	}

	/**
	 * 获取 仓库
	 *
	 * @return warehouseId
	 */
	public String getWarehouseId() {
		return warehouseId;
	}

	/**
	 * 设置 仓库主键
	 *
	 * @param warehouseId 仓库主键
	 */
	public void setWarehouseId(String warehouseId) {
		this.warehouseId = warehouseId;
	}

	/**
	 * 获取 客户基本信息表
	 *
	 * @return customer
	 */
	public Customer getCustomer() {
		return customer;
	}

	/**
	 * 设置 客户基本信息表
	 *
	 * @param customer 客户基本信息表
	 */
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	/**
	 * 获取 客户基本信息表
	 *
	 * @return customerId
	 */
	public String getCustomerId() {
		return customerId;
	}

	/**
	 * 设置 客户基本信息表主键
	 *
	 * @param customerId 客户基本信息表主键
	 */
	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

}
